package com.beerq.view.purchase;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.beerq.R;
import com.beerq.util.Constants;
import com.beerq.view.BaseActivity;
import com.beerq.view.ServicesActivity;
import com.beerq.view.WebViewActivity;

public class PaySucceedActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        statusBarType=1;
        super.onCreate(savedInstanceState);
        setMainContentView(R.layout.activity_pay_succeed);
        setBarTitle("下单成功");
        setLeftTitle("关闭");

        ImageView imageView=(ImageView)findViewById(R.id.img_right);
        imageView.setVisibility(View.VISIBLE);
        imageView.setImageDrawable(getResources().getDrawable(R.drawable.services));
        imageView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(mContext, ServicesActivity.class);
                startActivity(intent);
            }
        });


        findViewById(R.id.btn_ok).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(mContext, WebViewActivity.class);
                intent.putExtra("url", Constants.domain+"#/myorder?orderstatus=2");
                intent.putExtra("barType","1");
                startActivity(intent);
                finish();
            }
        });


    }



}
